<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>请假管理</title>
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script th:src="@{/js/jquery-3.6.0.js}"></script>
    <script th:src="@{/js/hr/wxw.js}"></script>
    <style>
        #wxw {
            width: 98%;
            margin: 16px auto;
        }

        td {
            font-weight: bold;
        }
    </style>
</head>
<body onload="shenPi()">
<div id="wxw">
    <table class="layui-table">
        <tr>
            <td>姓名：</td>
            <td><input type="text" class="layui-input" readonly th:value="${session.user.name}"></td>
            <td>部门：</td>
            <td><input type="text" class="layui-input" readonly th:value="${session.buMeng.departmentname}"></td>
        </tr>
        <tr>
            <td>开始时间：</td>
            <td><input type="date" class="layui-input wxw-date1" required th:value="${#dates.format(lea.begintime,'yyyy-MM-dd')}"></td>
            <td>结束时间：</td>
            <td><input type="date" class="layui-input wxw-date2" onchange="TinaShu()" required th:value="${#dates.format(lea.endtime,'yyyy-MM-dd')}"></td>
        </tr>
        <tr>
            <td>请假天数：</td>
            <td><input type="text" class="layui-input wxw-TianShu" readonly th:value="${tian}"></td>
            <td>请假类型：</td>
            <td><select class="layui-input QJType" name="de.id">
                <option value="-1">请选择类型</option>
                <option th:each="de:${dec}" th:value="${de.id}" th:text="${de.type}"
                        th:selected="(${de.id} eq ${lea.d_id})"
                ></option>
            </select></td>
        </tr>
        <tr>
            <td>请假事由：</td>
            <td colspan="3"><textarea name="" required placeholder="请输入请假事由" class="layui-textarea shiyou" th:text="${lea.reason}"></textarea></td>
        </tr>
        <tr>
            <td colspan="4">
                <hr>
            </td>

        </tr>
        <tr>
            <td>下一步审批人：</td>
            <td><select class="layui-input shenpi">
                <option value="-1">请选择审批人</option>
            </select></td>
            <td><input type="button" class="layui-btn" value="确定" onclick="QingJiaSave2()"></td>
            <td><input type="button" class="layui-btn" value="取消" onclick="guanbi2()"></td>
        </tr>
    </table>
</div>
</body>
<script>
    //抓取下拉框选中的值
    layui.use('form', function () {
        var form = layui.form;

        form.render();

    });

    //弹层设置
    layui.use("layer", function () {
        var layer = layui.layer;
    });


</script>
</html>